project(ZainTL)

if (MINGW)
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/MINGW/)
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/MINGW/)
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/MINGW/)
endif (MINGW)
if (UNIX)
    set(CMAKE_CXX_COMPILER /D/Linux/clang+llvm-4.0.0-x86_64-linux-gnu-debian8/bin/clang++)
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY /D/Linux/lib/)
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY /D/Linux/lib/)
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/LINUX/)
endif (UNIX)

include_directories(
        ${CMAKE_CURRENT_SOURCE_DIR}
)

add_library(ZainTL STATIC
        ShareHeaders.cpp ShareHeaders.h
        InputStream.cpp InputStream.h
        OutputStream.cpp OutputStream.h
        FileInputStream.cpp FileInputStream.h
        FileOutputStream.cpp FileOutputStream.h
        File.cpp File.h
        PKGUtil.h PKGUtil.cpp
        ZainTL.cpp ZainTL.h)

set_target_properties(ZainTL PROPERTIES LINKER_LANGUAGE CXX)